package com.situ.stl.mapper;

import com.situ.stl.entity.Coach;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CoachMapper {
    List<Coach> select(Coach coach);

    Coach selectCoachByPhone(@Param("phone") String phone);

    Coach selectCoachByWechat(@Param("wechat") String wechat);

    int insert(Coach coach);

    int modifyCoach(Coach coach);

    int delete(@Param("id") int id);

    Coach selectCoachById(@Param("id") Integer id);


    List<Coach> getCoachList(@Param("search") String search);
}
